﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ZWZ.Web.WebAdmin.UCtrs
{
    public partial class SelPages : System.Web.UI.UserControl
    {
        /// <summary>
        /// 选择的页面主键
        /// </summary>
        public string SelectPageID
        {
            get
            {
                return DropDownList1.SelectedValue;
            }
        }
        public string CssClass {
            set {
                DropDownList1.CssClass = value;
            }
        }
        public Unit Width {
            set {
                DropDownList1.Width = value;
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                DropDownList1.DataSource = Config.ConfigAdapter.SiteDataMgr.Groups["WebPages"].Settings;
                DropDownList1.DataBind();
            }
        }
    }
}